package ique.mantianx.service.lmpl;

import ique.mantianx.dao.BookMapper;
import ique.mantianx.pojo.Books;
import ique.mantianx.service.BookService;

import java.util.List;

/**
 * @author starrysky
 * @title: BookServiceImpl
 * @projectName book-system
 * @description: TODO
 * @date 2021/2/520:26
 */
public class BookServiceImpl implements BookService {

    private BookMapper bookMapper;

    public void setBookMapper(BookMapper bookMapper) {
        this.bookMapper = bookMapper;
    }

    @Override
    public int inertBook(Books books) {
        return bookMapper.inertBook(books);
    }

    @Override
    public int deleteBook(Integer id) {
        return bookMapper.deleteBook(id);
    }

    @Override
    public int updateBook(Books books) {
        return bookMapper.updateBook(books);
    }

    @Override
    public Books selectBook(Integer booksId) {
        return bookMapper.selectBook(booksId);
    }

    @Override
    public List<Books> queryAllBooks() {
        return bookMapper.queryAllBooks();
    }

    @Override
    public Books queryBookName(String bookName) {
        return bookMapper.queryBookName(bookName);
    }
}
